﻿using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.Attendance.AttendanceRemedyRules
{
    /// <summary>
    /// 考勤补卡规则
    /// </summary>
    public class AttendanceRemedyRulesRequestDto
    {
        /// <summary>
        /// 规则名称
        /// </summary>		        
        [Display(Name = "规则名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string RuleName { get; set; }

        /// <summary>
        /// 是否允许补卡
        /// </summary>
        [Display(Name = "是否允许补卡")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool IsAllow { get; set; }

        /// <summary>
        /// 限制补卡次数
        /// </summary>
        [Display(Name = "限制补卡次数")]
        public int LimitRemedyCount { get; set; }
        /// <summary>
        /// 限制补卡时间(天)
        /// </summary>
        [Display(Name = "限制补卡时间(天)")]
        public int LimitRemedyDays { get; set; }

    }
}
